import java.util.Scanner;

public class StringDemo2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        int counta = 0;
        int countA = 0;
        int count0 = 0;
        char []chars = input.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            if(chars[i] >= 'A' && chars[i] <= 'Z') {
                countA++;
            }
            if(chars[i] >= 'a' && chars[i] <= 'z') {
                counta++;
            }
            if(chars[i] >= '0' && chars[i] <= '9') {
                count0++;
            }
        }
        System.out.println("大写字母："+countA+"个");
        System.out.println("小写字母："+counta+"个");
        System.out.println("数字："+count0+"个");
    }
}
